package control.client;

import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import model.bean.ContatoJB;



 public class ContatoServlet extends javax.servlet.http.HttpServlet implements javax.servlet.Servlet {
   static final long serialVersionUID = 1L;
   


	public ContatoServlet() {
		super();
	}   	
	


	protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {


	}  	
	


	protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {

		
		ContatoJB contato = new ContatoJB();
		
		contato.setAaaa(request.getParameter("aaaa"));
		contato.setAssunto(request.getParameter("assunto"));
		contato.setCidade(request.getParameter("cidade"));
		contato.setDd(request.getParameter("dd"));
		contato.setEstado(request.getParameter("estado"));
		contato.setMm(request.getParameter("mm"));
		contato.setNome(request.getParameter("nome"));
		
		request.getSession().setAttribute("contato", contato);

	}   	  	    
}